import Router from 'koa-router';
import ShopController from "../../controller/shopController";
import AiFuncsConfigControlle from '../../controller/dlyadmin/aiFuncsConfig'
const router = new Router();

router.prefix('/api/shop');

router
  /**
   * @swagger
   * /api/shop/getShopCategory:
   *   get: 
   *     description: 商品列表 
   *     tags: [商品] 
   *     summary: "获取商品列表"
   *     parameters:
   *       - name: shop_id
   *         in: query
   *         description: 店铺ID
   *         required: true
   *       - name: page
   *         in: query
   *         description: 页码
   *         required: true
   *       - name: size
   *         in: query
   *         description: 页数
   *         required: true
   *     produces: 
   *       - application/json 
   *     responses: 
   *       200:
   *         description: 获取数据列表 
   * */
  .get('/getShopCategory', ShopController.getShopCategory)
  .get('/getShopInfo', ShopController.getShopInfo)
  .get('/xiaohaojifen', AiFuncsConfigControlle.list)

export default router;